<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
include("../../includes/appheader.php");
include("../../includes/functions.php");

$propertyTypes=getPropertyTypes();
$cities=getCities();
?>


<div>
    <div class="searchBoxHeader">Emlak Ara</div>
    <p>
        <table width="80%" border="0">
            <tbody>
                <tr>
                    <td>Durumu </td>
                    <td> Hepsi <input checked type="radio" name="offerType" value="0" /> Kiralık <input  type="radio" name="offerType" value="1" />  
                    Satılık <input type="radio" name="offerType" value="2" /></td>
                </tr>
                <tr>
                    <td>Şehir </td>
                    <td><select name="city">
                            <?php foreach($cities as $city){ echo "<option value=\"".$city['id']."\">".$city['name']."</option>";  }?>
                    </select></td>
                </tr>
                <tr>
                    <td>Emlak Türü</td>
                    <td>
                        <select name="propertyType">
                            <?php foreach($propertyTypes as $type){ echo "<option value=\"".$type['id']."\">".$type['name']."</option>";  }?>
                    </select></td>
                </tr>
                <tr>
                    <td>Fiyat Aralığı</td>
                    <td><input type="text" name="fromPrice" value="" size="5" /> - <input type="text" name="toPrice" value="" size="5" /></td>
                </tr>
                <tr>
                    <td colspan="2" align="center"><input onclick="search();" type="button" value="Ara" /></td>

                </tr>
            </tbody>
        </table>
    </p>
</div>

